<template>
	<view>
		<view class="boxContrainer">
			<view class="titlBox">
				<text class="title">车辆信息</text>
			</view>
			<view class="contentBox">
				<view class="textItem">
					<text>车辆信息</text>
					<text style="color: #333;">{{detailInfo.carInfo|filterNull}}</text>
				</view>
				<view class="textItem">
					<text>车牌号</text>
					<text style="color: #333;">{{detailInfo.carNo|filterNull}}</text>
				</view>
				<view class="textItem">
					<text>车架号</text>
					<text style="color: #333;">{{detailInfo.vinNo|filterNull}}</text>
				</view>
			</view>
		</view>

		<view class="boxContrainer">
			<view class="titlBox">
				<text class="title">违章信息</text>
			</view>
			<view class="contentBox">
				<view class="textItem">
					<text>违章单据号</text>
					<text style="color: #333;">{{detailInfo.documentNo|filterNull}}</text>
				</view>
				<view class="textItem">
					<text>违章时间</text>
					<text style="color: #333;">{{detailInfo.illegalTime|filterNull}}</text>
				</view>
				<view class="textItem">
					<text>违章地点</text>
					<text style="color: #333;">{{detailInfo.illegalLocation|filterNull}}</text>
				</view>
				<view class="textItem">
					<text>违章类型</text>
					<text style="color: #333;">{{detailInfo.illegalType|illegalType}}</text>
				</view>
				<view class="textItem">
					<text>违章扣分</text>
					<text style="color: #333;">{{detailInfo.pointsDeduction|filterNull}}</text>
				</view>
				<view class="textItem">
					<text>罚款金额</text>
					<text style="color: #333;">{{detailInfo.illegalFines||0}}</text>
				</view>
				<view class="textItem">
					<text>违章内容</text>
					<text style="color: #333;">{{detailInfo.illegalDetail|filterNull}}</text>
				</view>
				
			</view>
		</view>
		
		<view class="boxContrainer">
			<view class="titlBox">
				<text class="title">违章处理</text>
			</view>
			<view class="contentBox">
				<view class="textItem">
					<text>处理信息</text>
					<text style="color: #333;">{{detailInfo.payPersonType|payPersonType}}</text>
				</view>
				<view class="textItem">
					<text>处理状态</text>
					<text style="color: #333;">{{detailInfo.processingStatus|processingStatus}}</text>
				</view>
				<view class="textItem">
					<text>违章手续费</text>
					<text style="color: #333;">{{detailInfo.illegalPoundage|filterNull}}</text>
				</view>
				<view class="textItem">
					<text>交费总金额</text>
					<text style="color: #333;">{{detailInfo.totalMoney|filterNull}}</text>
				</view>
				<view class="textItem" style="flex-direction: column;align-items: flex-start;">
					<text style="margin-bottom: 16rpx;">处理附件</text>
					<view class="flex-row-center-sb">
						<view style="margin-right: 30rpx;">
							<u-album v-if="url.length>0" :urls="url" singleSize="158">
							</u-album>
						</view>
					</view>
				</view>
			</view>
		</view>
		
	</view>
</template>

<script>
	import * as illegalApi from '@/api/illegal-api.js';
	import settings from '@/settings.js'
	export default {
		data() {
			return {
				url: [],
				detailInfo : {},
				illegalId : '',
				
			}
		},
		onLoad(op) {
          this.illegalId = op.illegalId;
		  this.getIllegalDetail();
		},
		methods: {
            getIllegalDetail() {
				illegalApi.illegalDetail(this.illegalId).then(res=>{
					this.detailInfo = res.data;
					if(!this.$u.test.isEmpty(this.detailInfo.imgList)) {
						let url = settings.baseImageUrl + this.detailInfo.imgList;
						this.url.push(url);
					}
				   
				})
			}
		}
	}
</script>

<style lang="scss" scoped>

</style>
